const config = require('../configs'),
      Router = require('koa-router'),
      router = new Router(),
      S = require('../controllers/shop.js'),
      checkToken = require('../middlewares/checkToken.js');


/* HTTP动词
    GET     //查询
    POST    //新建
    PUT     //替换
    PATCH   //更新部分属性
    DELETE  //删除指定ID的文档
*/

router
//页面渲染
    .get('/shoplist',S.shoplist)                       //显示商铺列表
    .get('/shopinfo',S.shopinfo)                       //显示商铺详细信息

 
exports = module.exports = router;


